package com.sikaryofficial.backend.domain.dto.req.information;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sikaryofficial.common.core.web.page.PageDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * topic分页列表请求入参
 *
 * @author qinjinyuan
 * @date 2024-04-10
 */
@Getter
@Setter
@ToString
@ApiModel(value = "个人中心文章分页列表请求入参", description = "个人中心文章分页列表请求入参")
public class ArticleOwnerListReq extends PageDomain {

    @ApiModelProperty(value = "审核状态:0-草稿,1-审核中(点击发布),2-审核通过(发布成功),3-审核不通过，默认为0")
    private Integer auditStatus;

    @ApiModelProperty(value = "内容类型:0-动态 1-长文 2-短视频")
    @Max(value = 2, message = "contentType could not greater than 2")
    @Min(value = 0, message = "contentType could not less than 0")
    private Integer contentType;

    @ApiModelProperty(value = "内容类型:0-动态 1-长文")
    @Min(value = 0, message = "userId min value is 0")
    private Long userId;

    @JsonIgnore
    private Integer tenantId;
}
